package com.sdy.resdir.biz.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.sdy.common.model.BizException;
import com.sdy.common.utils.Assert;
import com.sdy.resdir.biz.model.RdOrderApp;
import com.sdy.resdir.biz.mapper.RdOrderAppMapper;
import com.sdy.resdir.biz.service.RdOrderAppService;
import com.sdy.mvc.service.impl.BaseServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cgj
 * @since 2019-11-21
 */
@Slf4j
@Service
public class RdOrderAppServiceImpl extends BaseServiceImpl<RdOrderApp> implements RdOrderAppService {
    @Autowired
    private RdOrderAppMapper rdOrderAppMapper;
    @Autowired
    private RdOrderAppService rdOrderAppService;

    @Override
    public boolean addOrderApps(String applyNum, List<RdOrderApp> ordeApps, Integer createUser, Date date) throws BizException {
        Boolean aBoolean = rdOrderAppMapper.addOrderApps(applyNum, ordeApps, createUser, date);
        return aBoolean;
    }
}
